/*
 * @Date: 2024-04-20 00:48:49
 * @LastEditors: 玄绮 shijiahansi@qq.com
 * @LastEditTime: 2024-04-20 15:01:23
 * @FilePath: \BigTalkDataStructure\tools\tree\bitree.h
 */
#ifndef __BITREE_H__
#define __BITREE_H__

#include <stdbool.h>
typedef int BiTreeData_t;

typedef struct BiTreeNodt_t
{
    BiTreeData_t         data;
    struct BiTreeNodt_t *left_child, *right_child;
} BiTree_t, BiTreeNodt_t, *PBiTree_t;

bool bitree_find(PBiTree_t t, BiTreeData_t data, PBiTree_t* p);
bool bitree_insert(PBiTree_t* t, BiTreeData_t data);
bool bitree_delete(PBiTree_t* t, BiTreeData_t data);
void bitree_display_BST(PBiTree_t t);

#endif  // __BITREE_H__